package com.milk.mapper;

import com.github.pagehelper.Page;
import com.milk.dto.CommonPageQueryDTO;
import com.milk.entity.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 优惠券 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
@Mapper
public interface CouponMapper extends BaseMapper<Coupon> {

    Page<Coupon> pageQuery(CommonPageQueryDTO dto);

    Page<Coupon> pageQueryByIntegral(CommonPageQueryDTO dto);

    void updateIntegralById(Long id);

    Page<Coupon> pageQueryBySDK(CommonPageQueryDTO dto);

    void updateSDKById(Long id);

    Page<Coupon> pageQueryByNoIntegral(CommonPageQueryDTO dto);

    Page<Coupon> pageQueryByNoSDK(CommonPageQueryDTO dto);

    List<Coupon> selectListCanIntegral();

}
